<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="VectorX">
    <meta name="keywords" content="雪碧图">
    <title>雪碧图</title>
    <style>
        .box1 {
            width: 109px;
            height: 33px;
            background: url("assets/背景/练习3-雪碧图/amazon-sprite_.png");
            /* 设置水平和垂直方向的一个偏移量；注意移动方向 */
            background-position: -10px -10px;
        }

        .box2 {
            width: 42px;
            height: 30px;
            background: url("assets/背景/练习3-雪碧图/amazon-sprite_.png");
            /* 设置水平和垂直方向的一个偏移量；注意移动方向 */
            background-position: -58px -338px;
        }
    </style>
</head>

<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>

</html>